package com.inspur.cloud.util;


public final class TConstants {
    //成功失败标识
    public static final String [] specStr={"hdfs","hive","hbase","yarn","kafka"};
    public static final String TM_SUCC = "SUCCESS"; //
    public static final String TM_FAIL = "FAILED";  //
    //集群配置参数常量
    public static final String AMBARI_URI = "ambari_uri";  //
    public static final String AMBARI_URI_USER = "ambari_uri_user";  //
    public static final String AMBARI_URI_PASS = "ambari_uri_pass";  //
    public static final String KEYTAB_PATH = "/etc/security/keytabs/";
    public static final String KRB5CONF_PATH = "/etc/krb5.conf";
    public static final String AMBARI_SERVER_IP = "ambari_server_ip";  //
    public static final String AMBARI_SERVER_PORT = "ambari_server_port";  //
    public static final String AMBARI_SERVER_USER = "ambari_server_user";  //
    public static final String AMBARI_SERVER_PASS = "ambari_server_pass";  //
    public static final String AMBARI_CLUSTER_NAME = "ambari_cluster_name";  //
    public static final String AMBARI_CONF_PATH = "ambari_conf_path";  //
    public static final String AMBARI_FILE_PATH = "ambari_file_path";  // kerberos证书路径

    public static final String AMBARI_SERVER_SSH_PORT ="ambari_server_SSH_port";
    public static final String AMBARI_SERVER_LOGIN_USER ="ambari_server_login_user";
    public static final String AMBARI_SERVER_LOGIN_PASS ="ambari_server_login_pass";
    public static final String AMBARI_SERVER_USE_SSL = "ambari_server_use_ssl";

    public static final String AMBARI_DOWN_URI = "ambari_down_uri";  //

    public static final String COMPONENT_HDFS = "hdfs";
    public static final String COMPONENT_HBASE = "hbase";
    public static final String COMPONENT_HIVE = "hive";
    public static final String COMPONENT_YARN = "yarn";
    public static final String COMPONENT_KAFKA = "kafka";
    public static final String COMPONENT_RANGER = "ranger";
    public static final String COMPONENT_HUE = "hue";
    public static final String COMPONENT_HOSTS = "hosts";

    public static final String CLUSTER_NAME = "HD";
    public static final String ADMIN_NAME = "admin";
    public static final Integer ADMIN_ID = 1;

    public static final String RECYCLE="/recycle";//回收站路径
    public static final String USRPATH = "/dataspace";//租户私有资源路径前缀
    public static final String PUBLICPATH="/public";//公共资源路径前缀
    public static final String DEFAULTCOLUMNFAMILY="default";

    public static final String DIRECTORY = "/";//目录分隔符
    public static final String ROOT = "root";//yarn root队列名
    public static final String YARN_DEFAULT = "default";//yarn default隊列

    //对应资源表中的资源状态
    public static final int RES_STATUS_AVAILABLE = 1;//可用
    public static final int RES_STATUS_NOTAVAILABLE = 0;//不可用(暂时未使用)

    //kerberos默认主机名bigdata
    public static final String KERBEROS_HOST ="bigdata";
    public static final String KERBEROS_KRB5_PATH = "/etc";
    public static final String KERBEROS_ATTACH_GROUP = "bigdata";
    public static final String KAFKA_BROKER_LIST = "kafka.broker.list";
    public static final String DATASPACE_USER = "dataspace";
    public static final String DATASPACE_PRINCIPAL = "dataspace/insight";
    //向Insight请求关于Yarn队列信息的json的url
    public static final String INSIGHT_YARN_URL = "/api/v1/views/CAPACITY-SCHEDULER/versions/1.0.0/instances/AUTO_CS_INSTANCE/resources/scheduler/configuration";
    //查询结果中需要屏蔽的库名和主题，需要单引号包起来便于拼接SQL
    public static final String HIVEDATABASEHIDDEN="'information_schema','sys'";
    public static final String KAFKATOPICHIDDEN = "'ambari_kafka_service_check'";
}
